﻿<html>
	<head>
		<title>
			1
		</title>
		<meta charset="utf-8">
		<meta id="viewport" name="viewport" content="width=device-width,initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0,user-scalable=no,target-densitydpi=260">
		<title></title>
		<script type="text/javascript" src="http://192.168.6.52:8083/js/jquery-1.8.0.min.js"></script>
		<script type="text/javascript" src="http://192.168.6.52:8083/js/jquery.cookie.js"></script>
		<script type="text/javascript" src="http://192.168.6.52:8083/js/base64.js"></script>
		
		<script>
			$(function(){
				//$.cookie("ssssssss",base64encode("sdfsdf"),{path:"/"});
				
				
				//$.cookie("namexxx","123124123");
				if($.cookie("savepass")!=null){
					$("#savepasswd").attr("checked","checked");
				}
ddd();
			});
			
			function save(){
				//alert(2);
				if($("#savepasswd").attr("checked")=="checked"){
					$.cookie("savepass","1",{path:"/",expires:7});
					$.cookie("phone","1",{path:"/",expires:7});
				}else{
					$.cookie("savepass","0",{path:"/",expires:-7});
				}
				$.alert("错误",error,"密码错误，密码不能为空，请输入");
			}
			
			function check(){}
			
			function ddd(){
			
				var url="http://api.flickr.com/services/feeds/photos_public.gne";
				var url="http://localhost/login_forgetPassword.do";
				$.ajax({
					url:url,
					type:"POST",
					data:"tags=cat&ss=dddcallback=?",//tags=cat&tagmode=any&format=json&json
					dataType:"jsonp",
					success:function(data){
						for(i=0;i<data.length;i++){
							var attr = data[i].attribute;
							for(x=0;x<attr.length;x++){
								$("#list").append("<li>" + attr[x].id + "</li>");
							}
						}
					},
					error:function(){
						alert(1);
					}
				});
			
				$.ajax({
					url:"http://api.flickr.com/services/feeds/photos_public.gne?tags=cat&tagmode=any&format=json&jsoncallback=?",
					dataType:"jsonp",
					success:function(data){
						alert("我回来了" + data.title);
					},
					error:function(data){
						alert("我错了。");
					}
				})
				
				$.ajax({
					url:"http://api.flickr.com/services/feeds/photos_public.gne?tags=cat&tagmode=any&format=json&jsoncallback=?",
					success:function(data){
						alert("我回来了" + data.title);
					},
					error:function(data){
						alert("我错了1111。");
					}
				})
			}
		</script>
	</head>
	<body>
		<div >
			<ul id="list">
			<input type="text" id="telnum" name="telnum" value="">
			<br><input type="checkbox" id="savepasswd" name="savepass" />保存密码
			<br><input type="button" name="submit" onclick="save()" value="登录" />
			</ul>
		</div>
	
	</body>

</html>